#!/usr/bin/env python

#------------------------------------
# - Simulation Code For TrafficRank 
# - Written By Jing Conan Wang.     
# - hbhzwj@gmail.com                
# The Module Now Support: 
#----------------------------------
# revised at June 1st. Try to make it usable for newer version of hist cite. 

from Webpage import *
# from TrafficRank import TrafficRank
from Graph import Graph
# from types import *
import sys
# import mail
# from time import gmtime, strftime

# import numpy
from Result import Result

if __name__ == "__main__":

	# nameSet2010 = ['edwards-rg_auth']
	# nameSet2010 = ['blumberg-bs_auth']
	# nameSet2010 = ['bibliomet-scientomet']
	nameSet2010 = ['pritchard-1969-j-doc']

	# try:
	res = Result()
	for name in nameSet2010:
		res.Sim(name, 2010)
		dif = res.CalculateDiff()
		print dif
	# except:
	#         print 'Simulation Failed'
	#         print sys.exc_info()
	#         rStr = 'Simulation Failed! \n'
	#         rStr += str(sys.exc_info())





